package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.core.domain.CtbaProject;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工程业务对象 ctba_project
 *
 * @author Huang
 * @date 2024-02-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaProject.class, reverseConvertGenerate = false)
public class CtbaProjectBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 项目名
     */
    @NotBlank(message = "项目名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 项目类型
     */
    @NotBlank(message = "项目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectType;


}
